package com.css.dzj.dzjfxyj.modules.acquier.service;

import com.css.dzj.dzjfxyj.common.util.R;
import com.css.dzj.dzjfxyj.modules.acquier.entity.JgFxyjWarningSignalEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;

public interface AcquierService {

    QueryResults<JgFxyjWarningSignalEntity> selectAll(String fxyjDomainId, String fxyjTitle, String fxyjLevel, String fxyjObjectName,
                                                      String startTime1, String endTime1, String startTime, String endTime, Pageable pageable);

    QueryResults<JgFxyjWarningSignalEntity> selectAllzh(String fxyjDomainId,String fxyjTitle,String fxyjLevel,String fxyjObjectName,
                                                        String dealState,String startTime,String endTime,Pageable pageable);

    /***
     * 根据ID查找风险任务及认领人信息
     * @param Id
     * @return
     */
    JgFxyjWarningSignalEntity findById(String Id);

    R saveAcquire(JgFxyjWarningSignalEntity jgFxyjWarningSignalEntity, HttpServletRequest request);

    void updAcquire(JgFxyjWarningSignalEntity jgFxyjWarningSignalEntity, HttpServletRequest request);

    R updState(String id);
    Long getCount();
}
